<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<div class="ui raised card" th:fragment="mycard" th:if="${currUser}">
    <div class="image" th:if="${currUser}">
        <img src="/static/icon.jpg"/>
    </div>
    <div class="content">
        <a class="header" th:text="${currUser.username}"></a>
        <div class="meta"><span th:text="${currUser.userType.getName()}"></span></div>
        <div class="ui divider"></div>
        <div class="description">
            <p th:if="${currUser.motto}" th:text="${currUser.motto}"></p>
            <p th:if="not ${currUser.motto}">这家伙很懒，什么都没有留下。</p>
        </div>
    </div>
</div>
<div class="ui raised segment" th:fragment="mycard" th:if="not ${currUser}">
    <div class="ui item">
        <h3 class="ui header">Express it! 新闻发布平台</h3>
    </div>
    <div class="ui divider"></div>
    <div class="ui center aligned large buttons">
        <a href="/signin"><button class="ui blue button">登录</button></a>
        <div class="or"></div>
        <a href="/signup"><button class="ui green button">注册</button></a>
    </div>
</div>
</body>

</html>